﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace SimpleReminder
{
    public class EventStartup : EventBase
    {
        bool _firstTime;
        public EventStartup(DataRow dr, bool firstTime)
            : base(dr)
        {
            if (base.Type != MyEvents.EventTypes.Startup)
                throw new MyEvents.InvalidEventTypeException();
            _firstTime = firstTime;
        }

        public override bool IsTimeToRun()
        {
            return base.CanRun && _firstTime;
        }
       
    }
}
